package com.ruoyi.project.system.filter.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.filter.mapper.PaeaParaFilterCodeMapper;
import com.ruoyi.project.system.filter.domain.PaeaParaFilterCode;
import com.ruoyi.project.system.filter.service.IPaeaParaFilterCodeService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 流水过滤交易码Service业务层处理
 *
 * @author ruoyi
 * @date 2020-03-12
 */
@Service
public class PaeaParaFilterCodeServiceImpl implements IPaeaParaFilterCodeService
{
    @Autowired
    private PaeaParaFilterCodeMapper paeaParaFilterCodeMapper;

    /**
     * 查询流水过滤交易码
     *
     * @param id 流水过滤交易码ID
     * @return 流水过滤交易码
     */
    @Override
    public PaeaParaFilterCode selectPaeaParaFilterCodeById(String id)
    {
        return paeaParaFilterCodeMapper.selectPaeaParaFilterCodeById(id);
    }

    /**
     * 查询流水过滤交易码列表
     *
     * @param paeaParaFilterCode 流水过滤交易码
     * @return 流水过滤交易码
     */
    @Override
    public List<PaeaParaFilterCode> selectPaeaParaFilterCodeList(PaeaParaFilterCode paeaParaFilterCode)
    {
        return paeaParaFilterCodeMapper.selectPaeaParaFilterCodeList(paeaParaFilterCode);
    }

    /**
     * 新增流水过滤交易码
     *
     * @param paeaParaFilterCode 流水过滤交易码
     * @return 结果
     */
    @Override
    public int insertPaeaParaFilterCode(PaeaParaFilterCode paeaParaFilterCode)
    {
        return paeaParaFilterCodeMapper.insertPaeaParaFilterCode(paeaParaFilterCode);
    }

    /**
     * 修改流水过滤交易码
     *
     * @param paeaParaFilterCode 流水过滤交易码
     * @return 结果
     */
    @Override
    public int updatePaeaParaFilterCode(PaeaParaFilterCode paeaParaFilterCode)
    {
        return paeaParaFilterCodeMapper.updatePaeaParaFilterCode(paeaParaFilterCode);
    }

    /**
     * 删除流水过滤交易码对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePaeaParaFilterCodeByIds(String ids)
    {
        return paeaParaFilterCodeMapper.deletePaeaParaFilterCodeByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除流水过滤交易码信息
     *
     * @param id 流水过滤交易码ID
     * @return 结果
     */
    @Override
    public int deletePaeaParaFilterCodeById(String id)
    {
        return paeaParaFilterCodeMapper.deletePaeaParaFilterCodeById(id);
    }
}
